package com.yxx.community.enums;

/**
 * @Author: YuXinXin
 * @Description:
 * @Date:Created in 20:38 2020/2/6
 **/
public enum  CommentTypeEnum {
  QUESTION(1),
  COMMENT(2);
  private Integer type;

  public static boolean isExit(Integer type) {
    for (CommentTypeEnum value : CommentTypeEnum.values()) {
      if(value.getType()==type){
        return true;
      }
    }
    return false;
  }

  public Integer getType() {
    return type;
  }

  CommentTypeEnum(Integer type) {
    this.type = type;
  }}
